package com.ruisoft.business.stock.bean;

import javax.persistence.Basic;
import javax.persistence.Entity;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created with IntelliJ IDEA.
 * User: LFC
 * Date: 2015/8/13
 * Time: 21:41
 * To change this template use File | Settings | File Templates.
 */
public class StockMove {
    private String id;
    private String company_id;
    private String dept_id;
    private String code;
    private String name;
    private String origin;
    private String warehouse_id;
    private String location_id;
    private String location_dest_id;
    private String picking_id;
    private String picking_type_id;
    private String procurement_id;
    private String purchase_line_id;
    private String production_id;
    private String raw_material_production_id;
    private String inventory_id;
    private String partner_id;
    private String group_id;
    private String move_dest_id;
    private String product_id;
    private BigDecimal price_unit;
    private String price_currency;
    private String product_uom;
    private BigDecimal product_uom_qty;
    private String product_uos;
    private BigDecimal product_uos_qty;
    private String restrict_lot_id;
    private String date_expected;
    private String priority;
    private String businessdate;
    private String state;
    private String invoice_state;
    private String note;
    private String create_uid;
    private String create_date;
    private String write_uid;
    private String write_date;
    private BigDecimal cost;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCompany_id() {
        return company_id;
    }

    public void setCompany_id(String company_id) {
        this.company_id = company_id;
    }

    public String getDept_id() {
        return dept_id;
    }

    public void setDept_id(String dept_id) {
        this.dept_id = dept_id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getWarehouse_id() {
        return warehouse_id;
    }

    public void setWarehouse_id(String warehouse_id) {
        this.warehouse_id = warehouse_id;
    }

    public String getLocation_id() {
        return location_id;
    }

    public void setLocation_id(String location_id) {
        this.location_id = location_id;
    }

    public String getLocation_dest_id() {
        return location_dest_id;
    }

    public void setLocation_dest_id(String location_dest_id) {
        this.location_dest_id = location_dest_id;
    }

    public String getPicking_id() {
        return picking_id;
    }

    public void setPicking_id(String picking_id) {
        this.picking_id = picking_id;
    }

    public String getPicking_type_id() {
        return picking_type_id;
    }

    public void setPicking_type_id(String picking_type_id) {
        this.picking_type_id = picking_type_id;
    }

    public String getProcurement_id() {
        return procurement_id;
    }

    public void setProcurement_id(String procurement_id) {
        this.procurement_id = procurement_id;
    }

    public String getPurchase_line_id() {
        return purchase_line_id;
    }

    public void setPurchase_line_id(String purchase_line_id) {
        this.purchase_line_id = purchase_line_id;
    }

    public String getProduction_id() {
        return production_id;
    }

    public void setProduction_id(String production_id) {
        this.production_id = production_id;
    }

    public String getRaw_material_production_id() {
        return raw_material_production_id;
    }

    public void setRaw_material_production_id(String raw_material_production_id) {
        this.raw_material_production_id = raw_material_production_id;
    }

    public String getInventory_id() {
        return inventory_id;
    }

    public void setInventory_id(String inventory_id) {
        this.inventory_id = inventory_id;
    }

    public String getPartner_id() {
        return partner_id;
    }

    public void setPartner_id(String partner_id) {
        this.partner_id = partner_id;
    }

    public String getGroup_id() {
        return group_id;
    }

    public void setGroup_id(String group_id) {
        this.group_id = group_id;
    }

    public String getMove_dest_id() {
        return move_dest_id;
    }

    public void setMove_dest_id(String move_dest_id) {
        this.move_dest_id = move_dest_id;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public BigDecimal getPrice_unit() {
        return price_unit;
    }

    public void setPrice_unit(BigDecimal price_unit) {
        this.price_unit = price_unit;
    }

    public String getPrice_currency() {
        return price_currency;
    }

    public void setPrice_currency(String price_currency) {
        this.price_currency = price_currency;
    }

    public String getProduct_uom() {
        return product_uom;
    }

    public void setProduct_uom(String product_uom) {
        this.product_uom = product_uom;
    }

    public BigDecimal getProduct_uom_qty() {
        return product_uom_qty;
    }

    public void setProduct_uom_qty(BigDecimal product_uom_qty) {
        this.product_uom_qty = product_uom_qty;
    }

    public String getProduct_uos() {
        return product_uos;
    }

    public void setProduct_uos(String product_uos) {
        this.product_uos = product_uos;
    }

    public BigDecimal getProduct_uos_qty() {
        return product_uos_qty;
    }

    public void setProduct_uos_qty(BigDecimal product_uos_qty) {
        this.product_uos_qty = product_uos_qty;
    }

    public String getRestrict_lot_id() {
        return restrict_lot_id;
    }

    public void setRestrict_lot_id(String restrict_lot_id) {
        this.restrict_lot_id = restrict_lot_id;
    }

    public String getDate_expected() {
        return date_expected;
    }

    public void setDate_expected(String date_expected) {
        this.date_expected = date_expected;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    public String getBusinessdate() {
        return businessdate;
    }

    public void setBusinessdate(String businessdate) {
        this.businessdate = businessdate;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getInvoice_state() {
        return invoice_state;
    }

    public void setInvoice_state(String invoice_state) {
        this.invoice_state = invoice_state;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getCreate_uid() {
        return create_uid;
    }

    public void setCreate_uid(String create_uid) {
        this.create_uid = create_uid;
    }

    public String getCreate_date() {
        return create_date;
    }

    public void setCreate_date(String create_date) {
        this.create_date = create_date;
    }

    public String getWrite_uid() {
        return write_uid;
    }

    public void setWrite_uid(String write_uid) {
        this.write_uid = write_uid;
    }

    public String getWrite_date() {
        return write_date;
    }

    public void setWrite_date(String write_date) {
        this.write_date = write_date;
    }

    public BigDecimal getCost() {
        return  price_unit.multiply(product_uom_qty);
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }
}
